package org.dromara.crawler.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.crawler.domain.KnowledgeTemplate;

import java.util.List;

public interface KnowledgeTemplateMapper extends BaseMapperPlus<KnowledgeTemplate, KnowledgeTemplate> {

    Page<KnowledgeTemplate> queryByPage(@Param("page") Page<KnowledgeTemplate> page, @Param(Constants.WRAPPER) Wrapper<KnowledgeTemplate> queryWrapper);

    List<KnowledgeTemplate> queryList(@Param(Constants.WRAPPER) Wrapper<KnowledgeTemplate> queryWrapper);

}
